package com.ruoyi.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.business.domain.TMessageInfo;
import com.ruoyi.business.vo.TMessageInfoVo;
import com.ruoyi.business.mapper.TMessageInfoMapper;
import com.ruoyi.business.service.ITMessageInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 消息通知Service业务层处理
 *
 * @author Tellsea
 * @date 2024-01-26
 */
@Service
public class TMessageInfoServiceImpl extends ServiceImpl<TMessageInfoMapper, TMessageInfo> implements ITMessageInfoService {

    @Override
    public TableDataInfo<TMessageInfoVo> queryList(TMessageInfoVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<TMessageInfoVo> queryAll(TMessageInfoVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public TMessageInfoVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
